<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var i=3;
 function fanhui(){
	 
	 i--;
	 //alert(1);
	 document.getElementById("seconds").innerHTML=i;
	 if(i==0){
		 //实现跳转
		 window.location.href="login.jsp";
	 }
 }
 setInterval("fanhui()",1000);
</script>
</head>
<body>
用户名或者密码错误<br>
<a href="login.jsp">返回登录页面</a><br>
<span id="seconds">3</span>秒种之后返回登录页面
</body>
</html>